package org.imaginedays.java.design.patter.simplefactory;

public class OperationTest {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		
		Operation oper = null;
		
		oper = OperationFactory.createOperation(Operate.ADD);
		oper.set_numberA(1);
		oper.set_numberB(2);
		
		double result = oper.getResult();
		System.out.println(result);

	}

}
